<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\Engine\BaseModel;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Active
 *
 * @property int $id
 * @property string|null $name
 * @property string|null $icon
 * @property string|null $time
 * @property string|null $label
 * @property string|null $content
 * @property int $created_at
 * @property int $updated_at
 *
 * @package App\Models
 */
class Active extends BaseModel
{
	protected $table = 'actives';

	protected $casts = [
		'created_at' => 'int',
		'updated_at' => 'int'
	];

	protected $fillable = [
		'name',
		'icon',
		'time',
		'label',
		'content'
	];

    public $rule=[
        'name'=>'required',
        'icon'=>'required',
        'time'=>'required',
        'content'=>'required',
    ];
    public $ruleMessage=[
        'name.required'=>"请填写活动名称",
        'icon.required'=>"请上传封面",
        'time.required'=>"请选择活动时间",
        'content.required'=>"活动详情不能为空",
    ];


}
